package edu.citadel.presentation.action;

import edu.citadel.db.ClientDao;
import edu.citadel.domain.Client;
import net.sourceforge.stripes.action.DefaultHandler;
import net.sourceforge.stripes.action.ForwardResolution;
import net.sourceforge.stripes.action.Resolution;
import net.sourceforge.stripes.action.UrlBinding;
import net.sourceforge.stripes.integration.spring.SpringBean;

/**
 * User: jordan
 * Date: 3/18/13
 * Time: 3:28 PM
 */
@UrlBinding("/Dashboard.action")
public class DashboardAction extends AbstractAction {
    @SpringBean
    public ClientDao clientDao;

    @DefaultHandler
    public Resolution display() {
        return new ForwardResolution(getContext().getJspPath("dashboard/dashboard.jsp"));
    }


    public ClientDao getClientDao() {
        return clientDao;
    }

    public Client getNewClient() {
        return new Client();
    }

    public void setClientDao(ClientDao clientDao) {
        this.clientDao = clientDao;
    }
}
